﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<TogheterWeBuyIt.Models.OutrosProduto>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Juntar-se
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Juntar-se</h2>

    <% using (Html.BeginForm()) {%>
        <%= Html.ValidationSummary(true) %>
        
        <fieldset>
            <legend>Meu desejo de compra</legend>
            
             <table align="center">
                      <tr>
                        <td>Nome:</td>
                        <td>
                       <%= Html.Label(Model.Nome)%>
                       </td>
                      </tr>
                      <tr>
                        <td>Até quanto estou disposto a pagar (R$):</td>
                        <td>
                        <%= Html.TextBox("TxbPreco", "0,00") %>
                        </td>
                      </tr>
                      <tr>
                        <td>Período que estou disposto a esperar:</td>
                        <td>De <%= Html.TextBox("TxbDataInicio", DateTime.Now.ToString("dd/MM/yyyy")) %> até <%= Html.TextBox("TxbDataFim", DateTime.Now.AddMonths(1).ToString("dd/MM/yyyy")) %></td>
                      </tr>
                      <tr>
                        <td colspan="2">
                            <%= Html.Hidden("IdProd", Model.IdProduto) %>
                             <%= Html.Hidden("IsToJoin", true) %>
                            <input type="submit" value="Juntar-se" />            
                        </td>
                      </tr>
                </table>             
            
        </fieldset>

    <% } %>

</asp:Content>

